class Conver_Tools:
    """
    类型转换类
    """

    @staticmethod
    def list_to_dict(data: list) -> dict:
        """
        列表转字典
        :param data: 列表数据
        :return: 字典数据
        """
        """
        eg: {'510504': [1, 7, 13], '510522': [5], '510525': [14, 16]}
        """
        di = {}
        for a, b in data: di.setdefault(a, []).append(b)
        return di
